package com.xiaochong.bitong.job;

import com.xc.logclient.utils.LogTrace;
import com.xiaochong.service.common.CommonBase;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Project : xc-tir
 * @Package Name : com.xiaochong.bitong.job
 * @Description : TODO
 * @Author : daizhiqing@xiaochong.com
 * @Creation Date : 2018年08月01日上午11:22
 * @ModificationHistory Who When What
 */
@SpringBootApplication
@MapperScan(BitongAppJob.BASE_PACKAGE)
@EnableAutoConfiguration
@ServletComponentScan
@ComponentScan({BitongAppJob.BASE_PACKAGE,LogTrace.BASE_PACKAGE })
@EnableAsync
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients
public class BitongAppJob {

    public static final String BASE_PACKAGE = "com.xiaochong";

    public static void main(String[] args) {
        SpringApplication.run(BitongAppJob.class, args);
    }
}
